<?php
$this->breadcrumbs=array(
	'Services'=>array('index'),
	$model->id=>array('view','id'=>$model->id),
	'Allocate Job',
);

$this->menu=array(
	array('label'=>'List Service', 'url'=>array('index')),
	array('label'=>'Create Service', 'url'=>array('create')),
	array('label'=>'View Service', 'url'=>array('view', 'id'=>$model->id)),
	array('label'=>'Manage Service', 'url'=>array('admin')),
);
?>
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'service-allocate-job-form',
	'enableAjaxValidation'=>false,
)); ?>

<h1>Allocate technician to Service #<?php echo $model->id; ?></h1>
<P>Are you sure to allocate a technician to this service?</P>
<div class="row">
	<?php echo $form->labelEx($model,'technicianId'); ?>
	<?php echo $form->dropDownList($model,'technicianId',Installer::getTechnicianList());?>
	<?php echo $form->error($model,'technicianId');?>
</div>
<p></p>
<p>This will send email to the chosed technician.</p>
<p>And set the staus of this service to "Job Allocated"</p>
<p>Are you sure to continue?</p>
<div class="row buttons">
		<?php echo CHtml::submitButton('Allocate'); ?>
</div>
<?php $this->endWidget(); ?>
</div>